how to access properties of dom